package com.example.higo.model.impl.shishangquan;

import com.example.higo.api.service.BaseSubscriber;
import com.example.higo.api.service.RetrofitManager;
import com.example.higo.model.IShishangquanModel;
import com.example.higo.model.entity.shishangquan.Shishangquan;

import retrofit2.Retrofit;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by wj on 2016/11/8.
 */

public class ShishangquanModelImp implements IShishangquanModel {

    @Override
    public void getShishangquanModel(BaseSubscriber<Shishangquan> subscriber, String page) {
        RetrofitManager.getInstance()
                .getShishangquanCallBack()
                .getShishangquanData(page)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.io())
                .subscribe(subscriber);
    }
}
